function soso(){
	var content =document.getElementById('content').value;
	alert('搜索的内容是' + content)
}


function showTime(){
	var date = new Date();
	var y = date.getFullYear()
	var m = date.getMonth() + 1;//第一月是0 
	var d = date.getDate();
	var h = date.getHours()
	var min = date.getMinutes()
	if(min <10) min = "0" + min;
	var s = date.getSeconds();
	if(s <10) s = "0" + s;
	var time = y + "-" + m + "-" + d + "  " + h + " : " + min + " : " + s
	document.getElementById('time').innerHTML = time;
}

/* 页面加载事件中调用showTime函数 */
window.onload = function (){
	showTime()
	//时间如果要每一秒钟改变
	// 需要定时函数
	setInterval(showTime,1000);
}